import request from '@/utils/axios';

export function getSysRoleMenuIds(roleId: number){
  return request({
    url: `/admin/system/sysRoleMenu/findSysRoleMenuByRoleId/${roleId}`,
    method: 'get',
  });
}


// 根据角色分配菜单请求方法
export const doAssignMenuIdToSysRole = (assignMenuDto: any) => {
    return request({
        url: "/admin/system/sysRoleMenu/doAssign",
        method: 'post',
        data: assignMenuDto
    })
}